
<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="" onsubmit="return navTabSearch(this)">
    <div class="pageHeader">
        <div class="searchBar">
            <ul class="searchContent">
                <li><label id="dayTypeCode" ><@label key="dayTypeCode.C,colon">工作日类型编号：</@label></label> <input type="text" name="dayTypeCode" value="${condition.dayTypeCode!''}" /></li>
                <li><label id="dayTypeText" ><@label key="dayTypeText.C,colon">工作日类型描述：</@label></label> <input type="text" name="dayTypeText" value="${condition.dayTypeText!''}" /></li>
                <li><label><@label key="lockFlag.L">锁定标记：</@label></label> <select name="lockFlag">
                            <option value=""><@label key="all.C">所有</@label></option>
                            <option value="0"<#if condition.lockFlag?? && condition.lockFlag == 0> selected="selected"</#if>><@label key="no.C">否</@label></option>
                            <option value="1"<#if condition.lockFlag?? && condition.lockFlag == 1> selected="selected"</#if>><@label key="yes.C">是</@label></option>
                        </select></li>
                <li class="query">
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button id="st" type="submit"><@label key="query.B">查询</@label></button>
                        </div>
                    </div>
                </li>

            </ul>
        </div>
    </div>
</form>

<div class="pageContent">

    <div class="panelBar">
        <ul class="toolBar">
            <@buttonRight menuCode="WORKDAYTYPE_ADD" labelKey="add.B" defalutName="新增">
            <li><a class="add" target="dialog" mask="true" width="635" height="430" href="${rc.getContextPath()}/manage/workDayType/addWorkDayType?navTabId=${navTabId!''}" rel="addWorkDayType" title="<@label key="addWorkDayType.C">新增工作日类型</@label>"><span><@label key="add.B">新增</@label></span>
            </a>
            </li>
            </@buttonRight>
            <@buttonRight menuCode="WORKDAYTYPE_EDIT" labelKey="edit.B" defalutName="编辑">
            <li><a class="edit" target="dialog" mask="true" width="635" height="510" href="${rc.getContextPath()}/manage/workDayType/editWorkDayType?id={workDayType_code}&navTabId=${navTabId!''}" rel="modifyWorkDayType" title="<@label key="editWorkDayType.C">编辑工作日类型</@label>"><span><@label key="edit.B">编辑</@label></span>
            </a>
            </li>
            </@buttonRight>
             <@buttonRight menuCode="WORKDAYTYPE_VIEW" labelKey="view.B" defalutName="详情">
            <li><a class="icon" target="dialog" mask="true" width="635" height="500" href="${rc.getContextPath()}/manage/workDayType/viewMaterial?id={workDayType_code}&navTabId=${navTabId!''}" rel="viewWorkDayType" title="<@label key="viewWorkDayType.C">工作日类型详情</@label>"><span><@label key="view.B">详情</@label></span>
            </a>
            </li>
            </@buttonRight>
             <@buttonRight menuCode="WORKDAYTYPE_DEL" labelKey="delete.B" defalutName="删除">
            <li><a class="delete" target="selectedTodo" postType="string" rel="ids" href="${rc.getContextPath()}/manage/workDayType/deleteWorkDayType?navTabId=${navTabId!''}" callback="batchjobAjaxDone" title="<@label key="delWorkDayType.M">确认要删除选中的工作日类型吗？</@label>"><span><@label key="delete.B">删除</@label></span>
            </a>
            </li>
            </@buttonRight>
        </ul>
    </div>
    <table class="table" width="100%" layoutH="134">
        <thead>
            <tr>
                <th width="22"><input type="checkbox" group="ids" class="checkboxCtrl">
                </th>
                <th width="100" orderField="dayTypeCode"<#if (page.orderField?? && page.orderField == 'dayTypeCode')>class="${page.orderDirection!''}"</#if>><@label key="dayTypeCode.C">工作日类型编号</@label></th>
                <th width="100" orderField="dayTypeText"<#if (page.orderField?? && page.orderField == 'dayTypeText')>class="${page.orderDirection!''}"</#if>><@label key="dayTypeText.C">工作日类型描述</@label></th>
                <th width="100" orderField="displayColor"<#if (page.orderField?? && page.orderField == 'displayColor')>class="${page.orderDirection!''}"</#if>><@label key="displayColor.C">显示颜色</@label></th>
                <th width="100" orderField="lockFlag"<#if (page.orderField?? && page.orderField == 'lockFlag')>class="${page.orderDirection!''}"</#if>><@label key="lockFlag.C">锁定标记</@label></th>
            </tr>
        </thead>
        <tbody>
            <#if page??><#if (page.data?size>0)> <#list page.data as workDayType>
            <tr target="workDayType_code" rel="${workDayType.dayTypeCode!''}">
                <td><input name="ids" value="${workDayType.dayTypeCode!''}" type="checkbox"></td>
                <td>${workDayType.dayTypeCode!''}</td>
                <td>${workDayType.dayTypeText!''}</td>
                <td>
                    <div style="width: 15px; height: 15px; -moz-border-radius: 10px ; 
                    -webkit-border-radius: 10px; border-radius: 10px; margin-top: 3px;background:${workDayType.displayColor!''};">
                    </div>
                </td>
                <td><#if (workDayType.lockFlag == 1)><@label key="yes.C">是</@label><#else><@label key="no.C">否</@label></#if></td>
            </tr>
            </#list> <#else>
            <tr target="workDayType_code">
                        <td colspan="6" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</td>
            </tr>
            </#if> <#else>
            <tr target="workDayType_code">
                        <td colspan="6" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</td>
            </tr>
            </#if>
        </tbody>
    </table>
    <#include "/common/panelBar.html">
</div>